package com.zhuobowen.warehouse.domain.bo;

import com.zhuobowen.warehouse.domain.ExportBillDetail;
import com.zhuobowen.common.mybatis.core.domain.BaseEntity;
import com.zhuobowen.common.core.validate.AddGroup;
import com.zhuobowen.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 出库单明细业务对象 wms_export_bill_detail
 *
 * @author zbw
 * @date 2025-01-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ExportBillDetail.class, reverseConvertGenerate = false)
public class ExportBillDetailBo extends BaseEntity {

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 单据ID
     */
    @NotBlank(message = "单据ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String billId;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goodsName;

    /**
     * 产品规格
     */
    @NotNull(message = "产品规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsStandard;

    /**
     * 产品数量
     */
    @NotNull(message = "产品数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsQuantity;

    /**
     * 产品总数量
     */
    @NotNull(message = "产品总数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsTotalQuantity;

    /**
     * 库位号
     */
    @NotBlank(message = "库位号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationCode;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
